﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Account_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       // RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
    }

	protected void bntLogin_Click(object sender, EventArgs e)
	{
		var user = BLL.Authentication.Login(tbEmail.Text,tbPassword.Text, cbRememberMe.Checked);
		if (user == null)
			lblError.Visible = true;
		else Response.Redirect(AppParams.URLs.DashboardUrl);
	}
}
